//
//  UIFont+XBAdd.h
//  XBCategoriesDemo
//
//  Created by kevin007 on 2021/4/12.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN
#define UIFontUItraLightMake(size)           [UIFont lx_uitraLightFontOfSize:size]
#define UIFontThinMake(size)                 [UIFont lx_thinFontOfSize:size]
#define UIFontLightMake(size)                [UIFont lx_lightFontOfSize:size]
#define UIFontRegularMake(size)              [UIFont lx_regularFontOfSize:size]
#define UIFontMediumMake(size)               [UIFont lx_mediumFontOfSize:size]
#define UIFontBoldMake(size)                 [UIFont lx_boldFontOfSize:size]
#define UIFontSemiboldMake(size)             [UIFont lx_semiboldFontOfSize:size]
#define UIFontHeavyMake(size)                [UIFont lx_heavyFontOfSize:size]
#define UIFontBlackMake(size)                [UIFont lx_blackFontOfSize:size]
#define UIFontSystemMake(size)               [UIFont systemFontOfSize:size]
#define UIFontBoldSystemMake(size)           [UIFont boldSystemFontOfSize:size]

@interface UIFont (XBAdd)
///超细字体
+(UIFont *)lx_uitraLightFontOfSize:(CGFloat)fontSize;
///纤细字体
+(UIFont *)lx_thinFontOfSize:(CGFloat)fontSize;
///亮字体
+(UIFont *)lx_lightFontOfSize:(CGFloat)fontSize;
///常规字体
+(UIFont *)lx_regularFontOfSize:(CGFloat)fontSize;
///介于Regular和Semibold之间
+(UIFont *)lx_mediumFontOfSize:(CGFloat)fontSize;
///加粗字体
+(UIFont *)lx_boldFontOfSize:(CGFloat)fontSize;
///半粗字体
+(UIFont *)lx_semiboldFontOfSize:(CGFloat)fontSize;
///介于Bold和Black之间
+(UIFont *)lx_heavyFontOfSize:(CGFloat)fontSize;
///最粗字体
+(UIFont *)lx_blackFontOfSize:(CGFloat)fontSize;

#pragma mark - 扩充字体
//iOS9以后系统自带苹方简字体
// family:'PingFang SC'
// font:'PingFangSC-Medium'
// font:'PingFangSC-Semibold'
// font:'PingFangSC-Light'
// font:'PingFangSC-Ultralight'
// font:'PingFangSC-Regular'
// font:'PingFangSC-Thin'

/** 萍方-简 正规体 PingFangSC-Regular*/
+(UIFont *)lx_PingFangSRegular:(CGFloat)fontSize;
/** 字体苹方 中等 PingFangSC-Medium*/
+(UIFont *)lx_PingFangSMedium:(CGFloat)fontSize;
/** PingFangSC-Semibold*/
+(UIFont *)lx_PingFangSSemibold:(CGFloat)fontSize;
/** PingFangSC-Thin*/
+(UIFont *)lx_PingFangSThin:(CGFloat)fontSize;
/** PingFangSC-Light*/
+(UIFont *)lx_PingFangSLight:(CGFloat)fontSize;
@end

NS_ASSUME_NONNULL_END
